package com.seu.githubcn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication
@MapperScan("com.seu.githubcn.mapper")
@PropertySource("classpath:/application.yml")
public class ServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(ServerApplication.class, args);
	}

	@Bean("basePath")
	public String createBasePath(@Value("${githubcn.base-path}") String basePath) {
		return String.valueOf(basePath);
	}

}
